import axios from "@/axios/request";
export const getCommentsInfo = (id, params) => {
  return axios({
    url: "/api/getcomments/" + id,
    params,
  });
};
export const publishComment = (id, data) => {
  return axios({
    method: "post",
    url: "/api/postcomment/" + id,
    data: "content=" + data.content,
  });
};
